package com.woniuxy.sale.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniuxy.commons.annotations.MyDictCode;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Api(value = "结算单信息详情返回数据")
public class AmountDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "打包信息单id")
    int packngId;

    @ApiModelProperty(value = "产品信息")
    String productInfo;

    @ApiModelProperty(value = "客户名")
    String customer;

    @ApiModelProperty(value = "仓库")
    @MyDictCode(value = "regin", isSon = true, dictName = "所属仓库")
    String warehouse;
//    //产品线
//  @MyDictCode(value = "CONDIPRODUCT_LINETION", dictName = "产品线")
//    String productLine;

    @ApiModelProperty(value = "产品重量")
    int weight;

    @ApiModelProperty(value = "商品数量")
    int num;

    @ApiModelProperty(value = "成色")
    @MyDictCode(value = "CONDITION", dictName = "成色")
    String condition;

    @ApiModelProperty(value = "克工费")
    int processCost;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date createdTime;

    @ApiModelProperty(value = "结算单类型：销售/退货")
    String formTypes;

    @ApiModelProperty(value = "结算单状态")
    @MyDictCode(value = "SETT_DOC_LIST_STATUS", dictName = "结算单列表状态")
    String settlementStatus;

    @ApiModelProperty(value = "产品品类")
    @MyDictCode(value = "CATEGORY", dictName = "产品品类")
    String productType;
    //创建人
//    String createdBy;
//    //修改人
//    String updateBy;
//    //修改时间
//    Date updateTime;

}
